package com.pb.wkflow.api.annotation.impl;

import com.pb.wkflow.api.annotation.WfTaskAnnotation;
import com.pb.wkflow.api.annotation.WfTaskAnnotationService;
import com.pb.wkflow.api.controller.request.ProcessTaskRequest;
import com.pb.wkflow.api.entity.WfSysProcInfoEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 默认实现类
 * @author 苗益辉
 * @date 2022/10/18 10:56
 */
@Slf4j
@Service
@WfTaskAnnotation(name = "DEFAULT")
public class WfTaskServiceImpl implements WfTaskAnnotationService {

    @Override
    public void completeTask(WfSysProcInfoEntity entity) {
        log.info("没有找到对应的服务接口，触发默认完成接口");
    }

    @Override
    public void terminateTask(WfSysProcInfoEntity entity) {
        log.info("没有找到对应的服务接口，触发默认终止接口");
    }

    @Override
    public void refuseTask(WfSysProcInfoEntity entity) {
        log.info("没有找到对应的服务接口，触发默认拒绝接口");
    }

    @Override
    public void submitTask(WfSysProcInfoEntity entity) {
        log.info("没有找到对应的服务接口，触发默认提交接口");
    }

    @Override
    public void backToFirstUserTask(WfSysProcInfoEntity entity) {
        log.info("没有找到对应的服务接口，触发默认撤回提交接口");
    }
}
